package com.meixiang.entity.shopping.result;

import com.meixiang.entity.shopping.GoodsPriceEntity;
import com.meixiang.entity.shopping.GoodsTypeEntity;
import com.meixiang.entity.shopping.StoreEntity;

import java.util.List;

/**
 * 商城首页Result
 *
 * @author LZRUI
 */
public class MallMainResult {

    private List<GoodsTypeEntity> gcList; //  商品类别列表
    private List<StoreEntity> storeList; // 店铺列表
    private List<GoodsPriceEntity> priceList; // 价格筛选
    private List<String> serviceList; // 筛选服务
    private String categoryName; // 商品列表菜单栏名称
    private String totalCount; // 查询结果总数量
    /**
     * brandId : brandId
     * brandName : brandName
     * brandCount : brandCount
     */

    private List<BrandListEntity> brandList;

    public MallMainResult() {
    }

    public MallMainResult(List<GoodsTypeEntity> gcList, List<StoreEntity> storeList, List<GoodsPriceEntity> priceList, List<String> serviceList, String categoryName, String totalCount) {
        this.gcList = gcList;
        this.storeList = storeList;
        this.priceList = priceList;
        this.serviceList = serviceList;
        this.categoryName = categoryName;
        this.totalCount = totalCount;
    }

    public List<GoodsTypeEntity> getGcList() {
        return gcList;
    }

    public void setGcList(List<GoodsTypeEntity> gcList) {
        this.gcList = gcList;
    }

    public List<StoreEntity> getStoreList() {
        return storeList;
    }

    public void setStoreList(List<StoreEntity> storeList) {
        this.storeList = storeList;
    }

    public List<GoodsPriceEntity> getPriceList() {
        return priceList;
    }

    public void setPriceList(List<GoodsPriceEntity> priceList) {
        this.priceList = priceList;
    }

    public List<String> getServiceList() {
        return serviceList;
    }

    public void setServiceList(List<String> serviceList) {
        this.serviceList = serviceList;
    }

    public String getCategoryName() {
        return categoryName == null ? "" : categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getTotalCount() {
        return totalCount == null ? "0" : totalCount;
    }

    public void setTotalCount(String totalCount) {
        this.totalCount = totalCount;
    }

    public void setBrandList(List<BrandListEntity> brandList) {
        this.brandList = brandList;
    }

    public List<BrandListEntity> getBrandList() {
        return brandList;
    }

    public static class BrandListEntity {
        private String brandId;
        private String brandName;
        private String brandCount;

        public void setBrandId(String brandId) {
            this.brandId = brandId;
        }

        public void setBrandName(String brandName) {
            this.brandName = brandName;
        }

        public void setBrandCount(String brandCount) {
            this.brandCount = brandCount;
        }

        public String getBrandId() {
            return brandId;
        }

        public String getBrandName() {
            return brandName;
        }

        public String getBrandCount() {
            return brandCount;
        }
    }
}
